package fr.cephb.joperon.core.db;


import com.sleepycat.db.DatabaseException;

import fr.cephb.joperon.core.Operon;
import fr.cephb.joperon.core.db.base.BaseDTermsDB;
import fr.cephb.joperon.core.entities.DTerms;

public class DTermsDB extends BaseDTermsDB
	{

	public DTermsDB(Operon operon) {
		super(operon);
	}

	
	
	/** @return the definition , if any, of the given term or null */
	public String getDefinition(int termId)throws DatabaseException 
		{
		DTerms dt= get(termId);
		return dt==null?null:dt.getDef();
		}

}
